package com.love.marriage.carouselBannerInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.carouselBannerInfo.entity.CarouselBannerInfo;
import com.love.marriage.carouselBannerInfo.vo.CarouselBannerInfoVo;
import com.love.marriage.common.interfaces.permission.DataPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  展示轮播图表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-20 10:10:50
 * version:      1.0.0
 */
@Mapper
public interface CarouselBannerInfoMapper extends BaseMapper<CarouselBannerInfo> {

    @DataPermission(table = "carousel_banner_info_t")
    Page<CarouselBannerInfoVo> getPage(Page<CarouselBannerInfoVo> page, @Param("carouselBannerInfoVo") CarouselBannerInfoVo carouselBannerInfoVo);

    List<CarouselBannerInfoVo> list(@Param("carouselBannerInfoVo") CarouselBannerInfoVo carouselBannerInfoVo);

    CarouselBannerInfoVo queryCarouselBannerInfo(@Param("id") Long id);
}
